\hypertarget{classLinearSystem}{\section{Linear\-System Class Reference}
\label{classLinearSystem}\index{Linear\-System@{Linear\-System}}
}


{\ttfamily \#include $<$linear\-\_\-system.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classLinearSystem}{Linear\-System} $\ast$ \hyperlink{classLinearSystem_aa29d08e6638016fa80829d1897fc5f02}{Resolve} ()
\item 
void \hyperlink{classLinearSystem_aa8fca01d43e098cec5141b7ddfa325cf}{Print\-System\-To\-Stdout} ()
\item 
void \hyperlink{classLinearSystem_a5c98225293d9356f08337f8d0d3e4d32}{Print\-Solution\-To\-Stdout} ()
\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static \hyperlink{classLinearSystem}{Linear\-System} $\ast$ \hyperlink{classLinearSystem_a31b09c09c3cac76939ec4c45ef2c8940}{Read\-Linear\-System\-From\-Stdin} (int, int, string \&)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to store and manipulate a systems of linear equations. It performs a reduction of the system by the algorithm of Gauss-\/\-Seidel. which allows getting the solution if there is a unique one, or to know if there are multiple or none solutions at all. 

\subsection{Member Function Documentation}
\hypertarget{classLinearSystem_a5c98225293d9356f08337f8d0d3e4d32}{\index{Linear\-System@{Linear\-System}!Print\-Solution\-To\-Stdout@{Print\-Solution\-To\-Stdout}}
\index{Print\-Solution\-To\-Stdout@{Print\-Solution\-To\-Stdout}!LinearSystem@{Linear\-System}}
\subsubsection[{Print\-Solution\-To\-Stdout}]{\setlength{\rightskip}{0pt plus 5cm}void Linear\-System\-::\-Print\-Solution\-To\-Stdout (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classLinearSystem_a5c98225293d9356f08337f8d0d3e4d32}
This mthod prints data about the solution of the matrix. In case there is a unique solution it prints it, otherwise, it tells that there are none or multiple solutions. \hypertarget{classLinearSystem_aa8fca01d43e098cec5141b7ddfa325cf}{\index{Linear\-System@{Linear\-System}!Print\-System\-To\-Stdout@{Print\-System\-To\-Stdout}}
\index{Print\-System\-To\-Stdout@{Print\-System\-To\-Stdout}!LinearSystem@{Linear\-System}}
\subsubsection[{Print\-System\-To\-Stdout}]{\setlength{\rightskip}{0pt plus 5cm}void Linear\-System\-::\-Print\-System\-To\-Stdout (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classLinearSystem_aa8fca01d43e098cec5141b7ddfa325cf}
This method prints a system matrix to standard output. \hypertarget{classLinearSystem_a31b09c09c3cac76939ec4c45ef2c8940}{\index{Linear\-System@{Linear\-System}!Read\-Linear\-System\-From\-Stdin@{Read\-Linear\-System\-From\-Stdin}}
\index{Read\-Linear\-System\-From\-Stdin@{Read\-Linear\-System\-From\-Stdin}!LinearSystem@{Linear\-System}}
\subsubsection[{Read\-Linear\-System\-From\-Stdin}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Linear\-System} $\ast$ Linear\-System\-::\-Read\-Linear\-System\-From\-Stdin (
\begin{DoxyParamCaption}
\item[{int}]{number\-\_\-of\-\_\-lines, }
\item[{int}]{number\-\_\-of\-\_\-variables, }
\item[{string \&}]{error}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classLinearSystem_a31b09c09c3cac76939ec4c45ef2c8940}
This method reads a Linear System from standard input.


\begin{DoxyParams}[1]{Parameters}
 & {\em number\-\_\-of\-\_\-lines} & the number of equations of the system. \\
\hline
 & {\em number\-\_\-of\-\_\-variables} & the number of variables in the equation. \\
\hline
\mbox{\tt out}  & {\em error} & this string is used to return an error message in \textbackslash{} case something went wrong. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
a pointer to the linear system read through the standard input. 
\end{DoxyReturn}
\hypertarget{classLinearSystem_aa29d08e6638016fa80829d1897fc5f02}{\index{Linear\-System@{Linear\-System}!Resolve@{Resolve}}
\index{Resolve@{Resolve}!LinearSystem@{Linear\-System}}
\subsubsection[{Resolve}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Linear\-System} $\ast$ Linear\-System\-::\-Resolve (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classLinearSystem_aa29d08e6638016fa80829d1897fc5f02}
This method applies Gauss-\/\-Seidel to the current system.

\begin{DoxyReturn}{Returns}
a pointer to the solved linear system. 
\end{DoxyReturn}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
linear\-\_\-system.\-h\item 
linear\-\_\-system.\-cpp\end{DoxyCompactItemize}
